<!doctype html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../assert_selection.js"></script>
<div id="log"></idv>
<script>
// This tests for sentence boundary when there are empty line break between
// lines of text.
selection_test(
  '<div contenteditable>foo|<div><br></div>bar</div>',
  selection => selection.modify('move', 'forward', 'sentence'),
  '<div contenteditable>foo<div>|<br></div>bar</div>',
  '1 move forward sentence to empty line break');

selection_test(
  '<div contenteditable>foo<div>|<br></div>bar</div>',
  selection => selection.modify('move', 'forward', 'sentence'),
  '<div contenteditable>foo<div><br></div>|bar</div>',
  '2 move forward sentence from empty line break');
</script>
